# File: compile.py

NAME = "script.py"

BODY = """
print 'owl-stretching time'
"""

try:
    code = compile(BODY, NAME, "exec")
except SyntaxError, v:
    print "Syntax error:", v, "in", NAME

print code
exec code
    